package com.swpu.eduservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 功能描述：
 *
 * @Author: ygq
 * @Date: 2021/10/11 19:33
 */
@SpringBootApplication
@EnableSwagger2
@CrossOrigin
@EnableFeignClients  //在服务调用端加这个注解
@EnableDiscoveryClient //进行注册的注解
@ComponentScan(basePackages = {"com.swpu"})
public class Eduapplication {
    public static void main(String[] args) {
        SpringApplication.run(Eduapplication.class,args);
    }
}
